kind: Deployment
apiVersion: apps/v1
metadata:
  name: deployment-test
  namespace: helmcharts-demo
spec:
  replicas: 1
  selector:
    matchLabels:
      app: grafana
  template:
    metadata:
      labels:
        app: grafana
        find-pod: test
      annotations:
        namespace/trigger: enabled
    spec:
      containers:
        - name: grafana
          image: >-
            test-image
          ports:
            - containerPort: 80
              name: http
              protocol: TCP
            - containerPort: 8080
              name: http3
              protocol: TCP
          terminationMessagePath: /dev/termination-log
          securityContext:
            capabilities:
              drop:
                - KILL
                - MKNOD
                - SETGID
                - SETUID
          resources:
            limits:
              cpu: 100m
              memory: 100Mi
            requests:
              cpu: 100m
              memory: 100Mi
          args:
            - test1
            - test3
          stdin: false
          terminationMessagePolicy: File
          imagePullPolicy: IfNotPresent
      volumes:
        - name: federation-secret
          secret:
            secretName: federation-secret
            defaultMode: 256
            optional: true
        - name: egressgateway-certs
          secret:
            secretName: egressgateway-certs
            defaultMode: 256
            optional: true
        - name: egressgateway-ca-certs
          secret:
            secretName: egressgateway-ca-certs
            defaultMode: 256
            optional: true
        - name: istiod-ca-cert
          configMap:
            name: istio-ca-root-cert
            defaultMode: 256
        - name: podinfo
          downwardAPI:
            items:
              - path: labels
                fieldRef:
                  apiVersion: v1
                  fieldPath: metadata.labels
              - path: annotations
                fieldRef:
                  apiVersion: v1
                  fieldPath: metadata.annotations
            defaultMode: 256
        - name: istio-envoy
          emptyDir: { }
        - name: config-volume
          configMap:
            name: istio-basic
            defaultMode: 256
            optional: true
      restartPolicy: Always
      terminationGracePeriodSeconds: 30
      dnsPolicy: ClusterFirst
      securityContext: {}
      schedulerName: default-scheduler
  strategy:
    type: Recreate
  revisionHistoryLimit: 10
  progressDeadlineSeconds: 600
